Skip to content

Remove bad openssl includes#2390

Open
yadij wants to merge 5 commits intosquid-cache:masterfrom
yadij:openssl-v4-support-3
Open

Remove bad openssl includes#2390
yadij wants to merge 5 commits intosquid-cache:masterfrom
yadij:openssl-v4-support-3

Conversation

@yadij
Copy link
Copy Markdown
Contributor

@yadij yadij commented Mar 15, 2026

These headers need to be included through
compat/openssl.h for portability fixes.

Also, remove a redundant include.

This header needs to be included through
compat.openssl.h for portability fixes.
@yadij yadij added M-cleared-for-merge https://github.com/measurement-factory/anubis#pull-request-labels S-could-use-an-approval An approval may speed this PR merger (but is not required) labels Mar 15, 2026
@rousskov rousskov self-requested a review March 15, 2026 14:05
kinkie
kinkie previously approved these changes Mar 17, 2026
Copy link
Copy Markdown
Contributor

@rousskov rousskov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This header needs to be included through compat/openssl.h for portability fixes.

AFAICT, there are at least three more headers that are being included directly even though compat/openssl.h provides the corresponding "portability fixes". Please fix all of the violations. Here is the list of all such headers that I could find:

  • openssl/asn1.h
  • openssl/bio.h
  • openssl/ssl.h
  • openssl/x509.h

@rousskov rousskov added S-waiting-for-author author action is expected (and usually required) and removed M-cleared-for-merge https://github.com/measurement-factory/anubis#pull-request-labels S-could-use-an-approval An approval may speed this PR merger (but is not required) labels Mar 18, 2026
this include is duplicate of context_storage.h
@yadij yadij changed the title Remove bad openssl/asn1.h include Remove bad openssl includes Apr 26, 2026
@yadij yadij added S-waiting-for-reviewer ready for review: Set this when requesting a (re)review using GitHub PR Reviewers box and removed S-waiting-for-author author action is expected (and usually required) labels Apr 26, 2026
@kinkie kinkie requested a review from rousskov April 26, 2026 10:18
@kinkie
Copy link
Copy Markdown
Contributor

kinkie commented Apr 26, 2026

@rousskov I've

This header needs to be included through compat/openssl.h for portability fixes.

AFAICT, there are at least three more headers that are being included directly even though compat/openssl.h provides the corresponding "portability fixes". Please fix all of the violations. Here is the list of all such headers that I could find:

  • openssl/asn1.h
  • openssl/bio.h
  • openssl/ssl.h
  • openssl/x509.h

done what you suggest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-for-reviewer ready for review: Set this when requesting a (re)review using GitHub PR Reviewers box

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants